Leveraging ChatGPT to optimize depression intervention through explainable deep learning

Introduction Mental health issues bring a heavy burden to individuals and societies around the world. Recently, the large language model ChatGPT has demonstrated potential in depression intervention. The primary objective of this study was to ascertain the viability of ChatGPT as a tool for aiding counselors in their interactions with patients while concurrently evaluating its comparability to human-generated content (HGC). Methods We propose a novel framework that integrates state-of-the-art AI technologies, including ChatGPT, BERT, and SHAP, to enhance the accuracy and effectiveness of mental health interventions. ChatGPT generates responses to user inquiries, which are then classified using BERT to ensure the reliability of the content. SHAP is subsequently employed to provide insights into the underlying semantic constructs of the AI-generated recommendations, enhancing the interpretability of the intervention. Results Remarkably, our proposed methodology consistently achieved an impressive accuracy rate of 93.76%. We discerned that ChatGPT always employs a polite and considerate tone in its responses. It refrains from using intricate or unconventional vocabulary and maintains an impersonal demeanor. These findings underscore the potential significance of AIGC as an invaluable complementary component in enhancing conventional intervention strategies. Discussion This study illuminates the considerable promise offered by the utilization of large language models in the realm of healthcare. It represents a pivotal step toward advancing the development of sophisticated healthcare systems capable of augmenting patient care and counseling practices.


Introduction
Mental health issues bring a heavy burden to individuals and societies around the world.A recent report indicates that over 20% of adults will experience at least one form of mental disorder in their lifetime (1).The global economy experiences an annual loss of approximately $1 trillion in productivity solely due to depression and anxiety (2).With the rapid development of the internet, many individuals turn to online health communities to seek advice for their psychological concerns.Social sciences have detected mental health issues through these health communities and other forms of online textual data (3).However, much of this research has primarily focused on constructing domain-specific machine learning models (4), such as stress detection (5), depression prediction (6).or suicide risk assessment (7).Traditional pretrained language models like BERT require fine-tuning for specific downstream tasks (8).However, they are confined to a predefined set of tasks with limited flexibility and cannot directly address patients' psychological issues.
The recent surge of large language models (9), such as ChatGPT (10), demonstrates a promising trend in using large pre-trained models to address various tasks in zero-shot settings.Numerous experiments have shown unequivocally that the utilization of these vast models, constructed with billions of parameters, has now reached a point where they display a remarkable capacity to comprehend HGC common sense within language.This is coupled with an augmentation in the capabilities of generating AIGC (11), which leverages the power of artificial intelligence to create content by extrapolating from user-provided keywords or requests (12).Notably, the field of text mining in machine learning stands as a pivotal element in the realm of psychological health evaluation and intervention (13), AIGC has become a potentially potent tool to comprehend users' psychological states based on their written language.Fine-tuning these models with specific instructions allows them to comprehend various inputs without the need to train multiple models for different tasks (14), such as multiple-choice questions, reasoning, and inference.This vision opens opportunities in the mental health community.
In light of this, ChatGPT aims to assist professional mental health counselors in evaluating patients' levels of depression and provides opportunities for effective treatment referrals (15).Research indicates that as a part of depression intervention measures, ChatGPT can reduce tendencies toward depressionrelated suicide (16).In theory, AIGC has the potential to support the decision-making process in chat interactions, which accurately predicts patients' depression measurement tools and clinical assessment behaviors (17).Our study commences by formulating a sophisticated deep learning methodology rooted in BERT architecture (8), to effectively discriminate between AIGC and HGC.The outcomes of our experiments showcase the superior performance of Roberta's deep learning model compared to the baseline model.By employing Roberta, a robust variant of BERT, we achieve enhanced accuracy and efficiency in the classification task, affirming the efficacy of leveraging state-of-the-art deep learning techniques for content categorization tasks.To bolster the interpretability of our model and unravel the underlying semantic constructs embedded within the text data, we integrate the explainable artificial intelligence (XAI) framework (18), with a particular emphasis on the Shapley additive explanations (SHAP) methodology (19).By leveraging SHAP, we extract salient semantic features from the textual data, thereby enhancing the interpretability and transparency of our deep learning model.
In conclusion, we make the following contributions: First, the paper introduces a novel framework integrating advanced AI technologies, including BERT and Roberta, to enhance depression intervention measures.This integration enables the generation of personalized and context-aware recommendations, thus improving the efficacy of depression interventions.
Second, unlike conventional AI systems, the proposed framework prioritizes interpretability and transparency.By incorporating the SHAP methodology, the paper provides valuable insights into the underlying reasoning behind the AIgenerated recommendations, enhancing their interpretability for healthcare professionals.
Third, the paper conducts a comprehensive linguistic analysis comparing AIGC and HGC.Through this analysis, the paper identifies distinguishing linguistic attributes, contributing to a deeper understanding of the linguistic properties of AI-generated recommendations and ensuring their validity and reliability.
2 Literature review

Depression intervention using deep learning
Early research has already noted the relationship between mental health and social media (20), whereby researchers can gather information related to the thoughts and behaviors of individuals with depression based on their activities or emotions expressed on social media (21).Utilizing social media as a rich source of textual data for analyzing users' mental health status provides a reliable source for data collection in this study (22).With the rapid growth of online text volume and the sensitivity of mental health conditions, manual analysis of large-scale text is no longer suitable for user psychotherapy.Therefore, text mining in deep learning techniques has been employed to intervene in depression from social media automatically.
Compared to traditional machine learning, deep learning methods employ neural networks typically characterized by deep or extensive hidden layers, learning several abstract levels of representation.These hidden layers, do not have values provided in the input data, necessitating the network to discern which concepts are useful for explaining relationships.Some studies apply simple network architectures, such as multi-layer perceptron (23).In contrast, others adopt more intricate architectures tailored for sequential data (24), such as long shortterm memory (LSTM) (25), gated recurrent units (GRU) (26), convolutional neural networks (CNN) (27).However, these deep architectures rely on large amounts of manually labelled training data.This requirement may hinder widespread attempts to determine which deep neural network architectures are most suitable for identifying signs of mental disorders in users on social media.(28) explored Transformer-based architectures, including BERT, and RoBERTa, for predicting four levels of depression risk using Weibo data.( 29) compared various Transformer-based models, with RoBERTa emerging as the best-performing model.This model was pre-trained based on posts related to depression on Reddit.
All the above literature demonstrates the superiority of deep learning in depression intervention.However, due to the black-box nature of deep learning in certain contexts, lacking interpretability, this paper utilizes interpretable deep learning for intervening in psychological disorders.

XAI for depression intervention
Deep learning leverages large datasets to generate more accurate and insightful predictions.Understanding the representations acquired by intermediate layer neurons in deep learning is crucial for interpreting the operation of deep neural networks (30).Simultaneously, there is a growing interest in deep neural networks' black-box nature and functioning, driving efforts to deconstruct their fundamental components and understand their functionality.Consequently, there has been increasing attention on interpretability in recent years as the demand for explaining the internal mechanisms of deep learning systems continues to rise.XAI technology has emerged in response to this challenge, including post-hoc and self-explanatory techniques.Post-hoc techniques aim to explain predictions of pre-trained black-box models.Currently, the most popular methods are model-agnostic, meaning they can be applied to any underlying black-box model without assuming knowledge of its internal workings and structure.SHAP approximates feature importance weights by adhering to regression and game theory (31).Similarly, model-agnostic supervised local explanations (32) provides explanations based on forest ensembles by combining local linear and random models.Conversely, self-explanatory techniques, although trained, can provide explanations alongside predictions.However, these methods often encounter challenges related to flexibility and integration with other deep learning models (33).
Recent studies have shown that enhancing the transparency of deep learning makes them thoroughly understood and more reliable.Attention-based methods have been proven to increase model transparency and have demonstrated effectiveness in various natural language processing (NLP) tasks, including entity recognition, machine translation systems, and text classification (34).Zogan et al. (35) introduced a depression detection model based on bidirectional gated recurrent unit convolutional neural network to address the issue of model interpretability during analysis.Belcastro et al. (36) tackled the challenge of interpretable depression detection by introducing a novel methodology that effectively integrates XAI and conversational agents like ChatGPT.Wang et al. (37) proposed a system to search for texts related to depression symptoms, improving the performance of automatically filling in the BDI questionnaire, which effectively explores the interpretability of the large language model for depression prediction.Souto et al. (38) put forward using a transformer-based architecture to detect and interpret depressive symptom markers in user writing.The results demonstrate that this approach can perform better classification while generating interpretable, symptom-based explanations.
Unlike the above literature, our approach introduces a novel interpretable model that provides explanations while classifying HGC and AIGC.This model accurately classifies and offers detailed, understandable explanations for its decisions.By leveraging ChatGPT to translate these explanations into a human-readable format, we aim to enhance the end-user's understanding, making the model's decision-making process more transparent and accessible.

Methods
Our approach comprises two fundamental components (refer to Figure 1).The first component involves a deep learning model trained to discriminate between HGC and AIGC.We utilize  Schematic representation of study design.The second component is an interpretable AI framework designed to interpret two distinct sets of data samples, focusing on comprehending the outcomes of machine learning models employed for discrimination.We use deep learning models for content classification tasks, such as BERT (Bidirectional Encoder Representations from Transformers) and Roberta.These models are trained on large-scale text corpora and can capture intricate linguistic patterns and semantic nuances.We utilize BERT and Roberta to distinguish between human-generated and AI-generated content, ensuring the reliability of the recommendations.
Finally, we employ XAI techniques to delve into the inner workings of the acquired models; we integrate the SHAP methodology, which is part of the XAI framework, to enhance the interpretability of the AIgenerated recommendations.SHAP enables us to extract salient semantic features from the textual data, providing valuable insights into the underlying reasoning behind the recommendations.Below, we delve into both building blocks in greater detail.

Data collection
We sourced our data from Xinli001.com, a leading online psychological community in China.This platform is the foremost player in China's online psychological counseling market and is renowned for being the largest and most prestigious online counseling community.It carefully selects 1,000 high-quality psychological counselors to provide professional psychological counseling services to the public.Its primary mission is to offer an online avenue for counselors to engage with patients.Table 1 shows examples of two data sets (see attachment).
Regarding the datasets we utilized in our research, we considered two distinct collections.Firstly, we incorporated a publicly available dataset comprising HGC, explicitly consisting of authentic One Psychology data created manually.Additionally, we included a dataset composed of AI-generated content (AIGC) generated by ChatGPT. Figure 2 graphically illustrates the distribution of word counts within each dataset.Allow us to provide detailed descriptions of these two datasets: The HGC dataset pertains to One Mind and encompasses 9257 comments, each with corresponding labels denoting their utility.AIGC dataset generated by ChatGPT.We achieved this by instructing Translation: Trying to do something well and getting compliments for those efforts encourages you to try harder and do better.Self-suggestion.Tell yourself you are doing a good job.Do this repeatedly.Of course, be self-reflective or you'll be a fool.Increase the confidence of others in these same two ways.Emotional and institutional incentives to encourage others to try to do something well and to praise them unreservedly for those efforts encourage the other person to try harder and do better.When the other person lacks the power of self-suggestion, provide this power externally repeatedly until it is internalized.
Translation: There are many ways to build self-confidence, starting with identifying one's strengths and advantages and building on them.At the same time, it is important to realize that everyone has shortcomings.Instead of beating yourself up or dwelling on your shortcomings, you should actively look for ways to improve.Also, interacting more with confident people and learning from their behaviors and ways of thinking can help boost your self-confidence.The most important thing is to give yourself small goals and make positive comments for each improvement.I believe that with constant effort, self-confidence will slowly build up.
Love ChatGPT to rephrase every statement within HGC.Consequently, this dataset comprises 9,257 comments, with each response representing a reworded rendition of HGC.The distribution of comment lengths, quantified in terms of word count, for all two datasets can be observed in Figure 2. Notably, in contrast to the manually generated content, a significant portion of the AIGC texts consists of relatively brief text segments.We divide it according to the training set and test set 8:2 in the HGC dataset.Specifically, the training data set is 7405 comments, and the testing data set is 851.Since the text data of HGC and AIGC are consistent, the division mode is also the same.Additionally, the number of helpfulness labels is 7522.

Depression intervention model
Our approach comprises two fundamental components (refer to Figure 1).The first component involves a deep learning model trained to discriminate between HGC and AIGC.The second component is an interpretable AI framework designed to interpret two distinct sets of data samples, focusing on comprehending the outcomes of machine learning models employed for discrimination.We use explainable AI techniques to delve into the inner workings of the acquired models, intending to gain insights into the writing styles of HGC and ChatGPT, along with their disparities.Below, we delve into both building blocks in greater detail.
Text features are crucial in extracting meaningful insights and assessing their utility in HGC.Leveraging state-of-the-art pre-trained models like BERT and Roberta enhances the efficacy of this process.BERT revolutionized natural language processing by capturing bidirectional contextual information in text (8).It effectively learns the relationships between words in a sentence by considering both left and right contexts.By pre-training text data using BERT, HGC ensures that the extracted features retain rich semantic information, allowing for more accurate utility assessments.Roberta, an extension of BERT (39), addresses certain limitations of BERT to refine the text feature extraction process.It removes the next sentence prediction objective, enabling more focused learning of contextual representations.Additionally, Roberta benefits from training with larger mini-batches and learning rates, which enhances its efficiency and scalability.Dynamic masking during pre-training is another innovative aspect of Roberta, ensuring that the model learns robust representations by dynamically masking different parts of the input text during training.
For the inference step in HGC, BERT and Roberta follow similar procedures.Fine-tuning the pre-trained models on specific tasks related to HGC allows them to adapt to the domain-specific characteristics of the data.This fine-tuning process tailors the models to effectively capture and utilize the information relevant to the intervention effect of HGC.Two machine learning algorithms were chosen to validate the effect of HGC on the intervention.These algorithms leverage the extracted text features and the fine-tuned models to analyze the impact of HGC.By comparing the results obtained from these algorithms, HGC can assess its effectiveness in achieving its objectives and making informed decisions regarding future interventions.
Text convolutional neural network (TextCNN) ( 40) is a convolutional neural network designed for processing text data.It uses convolutional operations to capture local patterns and relationships within the input text.In the context of text classification, TextCNN can be used to automatically learn hierarchical representations of sentences or documents.Text Long Short-Term Memory (Text-LSTM) (41) employs long shortterm memory networks, for sequential data processing.LSTMs are particularly effective in capturing long-range dependencies in sequential data, making them suitable for understanding the context and relationships between words in a sentence or document.Subsequently, the model is fine-tuned based on the gathered data to ascertain whether the text samples belong to a positive or negative class (HGC) class (AIGC).

Interpretability of the model
We delve deeply into the foundational elements of XAI.Within our comprehensive XAI framework, we embrace SHAP as proposed (19).SHAP represents a model-agnostic methodology designed to shed light on the outcomes produced by deep learning models.Doing so aids in elucidating the decision-making process inherent in complex models, especially those utilized in tasks such as text categorization.SHAP assigns a significance value to each text classification model input feature, offering a consistent metric for gauging feature importance.When applied to a text classification model, SHAP becomes instrumental in identifying the crucial words or phrases within a given text that wield the most substantial influence on the model's output.This capability enables the precise identification of specific text segments driving recognition outcomes, consequently augmenting the accuracy and interpretability of the model's recognition mechanism.
By adopting SHAP within our XAI framework, we aim to enhance the understanding and trustworthiness of deep learning models, thereby fostering broader adoption and application in realworld scenarios, that is to sift through user tweets that can elucidate the causes of depression.Beyond providing reasonable explanations, these tweets should also contribute to depression intervention.Through SHAP, we can grasp the tendency of depressive emotions within the text.Our model visualization can identify the words contributing most significantly to depression and their respective texts, aiding in the identification of depression.

Results
First, we describe the linguistic features of HGC and AIGC and summarize the different linguistic features; second, we attempt to use deep learning models to observe the feasibility of assisting psychological counselors with AIGC.Third, use SHAP values to observe the interpretability of text in both HGC and AIGC.

Linguistic analysis
We undertake thorough human evaluations and linguistic analyses on both HGC and AIGC, unveiling intriguing patterns exhibited by both.These discoveries not only aid in discerning whether language models generate specific content but also offer valuable insights into the future direction language models should take.We will analyze it from the following four aspects in Figure 3.
Our comprehensive linguistic analysis of HGC and AIGC reveals intriguing patterns.A part-of-speech (POS) analysis shows AIGC's higher utilization of nouns, contributing to information conveyance and objectivity, while HGC uses more pronouns for entity reference.Both employ similar proportions of verbs, adjectives, and adverbs.AIGC also uses more coordinating conjunctions, indicating a higher prevalence of coordinated structures.A dependency-syntactic-parsing (DEP) analysis reveals both HGC and AIGC effectively convey subject-verb relationships, adverbial modifiers, and direct objects.Divergences emerge in the frequency of specific roles.AIGC leans towards attributes and prepositional modifiers, enriching its text with details.In contrast, humans use more complements, providing extra information on subjects or objects, often expressing opinions or states of being.
Semantic-dependency-parsing (SDP) analysis shows AIGC's preference for words linked to the semantic roles of features and modifier relations, enriching the narrative with additional layers of information.Conversely, HGC uses more words associated with dependent modifiers and punctuation marks.Sentiment analysis reveals both HGC and AIGC can express various sentiments, with AIGC leaning towards a more neutral tone and HGC exhibiting a slightly higher proportion of positive sentiment.These findings elucidate the characteristics of AIGC and the similarities and differences between them and human language usage.
We conduct a comparative linguistic analysis to dissect and elucidate the distinguishing attributes between AIGC and HGC.This analysis examines various linguistic features, such as vocabulary usage, syntactic structures, and discourse coherence, to identify patterns that differentiate AI-generated and humangenerated content.By including this component in our analysis, we aim to comprehensively understand the linguistic characteristics of the AIGC and their alignment with human-generated content.

Result analysis in machine learning
This paper's narrative focuses on deploying four distinct machine learning algorithms to detect the distinction between artificially generated content and AIGC.The fruits of these analytical endeavors find their expression within the confines of Table 2. Notably, the prowess of BERT and Roberta, buoyed by the parameters of their more expansive models, emerges as a standout, yielding results of heightened efficacy compared to their deep learning counterparts.The classification accuracy achieved by Roberta takes center stage, soaring to an impressive 93.76%.This achievement notably eclipses text CNN and LSTM by an average margin of approximately 5%.This paper's narrative focuses on deploying four distinct machine learning algorithms to detect the distinction between artificially generated content and AIGC.The fruits of these analytical endeavors find their expression within the confines of Table 2. Notably, the prowess of BERT and Roberta, buoyed by the parameters of their more expansive models, emerges as a standout, yielding results of heightened efficacy compared to their deep learning counterparts.The classification accuracy achieved by Roberta takes center stage, soaring to an impressive 93.76%.This achievement notably eclipses text CNN and LSTM by an average margin of approximately 5%.
This symphony of results harmonizes to underscore the preeminence of the pre-trained BERT model.Its acumen in discerning the subtle differentiations etched within the logical architecture and linguistic demeanor of HGC versus AIGC surfaces is a hallmark.This nuance is the conduit for its exceptional performance, serving as a testament to the amalgamation of pretrained linguistic intelligence with machine learning.Ultimately, the narrative's crescendo resounds in a refrain highlighting the pretrained BERT model's innate ability to distinguish and differentiate between HGC and AIGC.
Table 3 is the canvas that captures the outcomes from the conducted utility experiments orchestrated by embracing deep learning-based classifiers, directing the pas de deux of HGC and AIGC interventions.In this tableau, juxtaposing the two methodologies reveals a compelling narrative.Notably, the AIGC utility classification accuracy emerges triumphantly over its HGC counterpart in both scenarios, with the apex being the Roberta model at a formidable 91.2%.This manifestation is a natural consequence, a choreographed dance between technology and linguistic craftsmanship.AIGC, closely mirroring the original discourse, becomes an avenue through which ChatGPT dons the cloak of human style, rendering it a more seamless endeavor to elude the classifier's gaze.
The foundation of the Bert method, grounded in its namesake's capacities, conspicuously outshines essential deep learning.This ascension is not merely coincidental; it's a testament to Bert's more robust performance fostered through its nuanced training on an extensive corpus.However, when the AIGC role transitions to that of a scribe rewriting the tapestry of human expression, the notion of utility takes on new complexities.The mere determination of usefulness is inadequate to gauge intervention efficacy, casting a shadow of insufficiency on this singular facet.This complex interplay gives credence to employing deep learning models, particularly those infused with Bert's prowess, as adept classifiers of comment samples.Moreover, our venture into fine-tuning, a twofold journey, encompasses both datasets and psychological intervention.This endeavor augments the level of psychological intervention, thereby embellishing the overarching intervention efficacy.
The objective of the intervention task is to evaluate how effectively ChatGPT, augmented with advanced deep learning techniques, can provide support for individuals experiencing Part-of-speech analysis between HGC and AIGC.
Top-20 dependency relations between HGC and AIGC.depression symptoms.Specifically, the aim is to assess AIGC whether suggestions can contribute to early intervention and support for individuals facing mental health challenges.By clearly defining this objective, the authors aim to demonstrate the potential of AI in assisting with mental health interventions.The performance of the models is assessed using various metrics such as accuracy, precision, recall, and F1 score.The evaluation is conducted on a dataset comprising both human-generated content and AI-generated content.Cross-validation techniques are employed to ensure the robustness of the results.Additionally, the authors compare the performance of different models, such as BERT and Roberta, to determine which model yields the best results in classifying content accurately.In the intervention task, multiple models are utilized to provide comprehensive support.ChatGPT serves as the primary model for generating responses to inquiries related to depression symptoms and mental health challenges.Deep learning models like BERT and Roberta classify content and distinguish between human-generated and AI-generated content.By integrating these models, the intervention system can provide tailored recommendations based on the conversation's context while ensuring the generated content's reliability.

Explainable analysis
Figure 4 presents the interpretable experiment of the model, in which we selected a subset of explanations for further examination.The overall classification remains reliable.We observed that HGC tends to use more names, with noticeable differences in feature values.For instance, in Figure 4B, most SHAP values are around -0.01, but some are also at -0.02.On the other hand, the text generated by AIGC is comparatively longer with a more uniform structure, and the feature values across each dimension are consistent, mostly at -0.01.It's noteworthy that verbs such as "establish," "improve," and "overcome" harm AIGC, contributing positively to the detection of HGC.These findings indicate that the data used by the deep learning model effectively associates semantic features with HGC.
As shown in Figure 5, the three localized explanation charts presented highlight emotionally charged words related to love in HGC.Particularly, the word "喜欢" (like) has the most significant impact on the model's decision, aligning with the impact observed in HGC.Similarly, in the case of AIGC, the word "感受" (feelings) has the most pronounced influence on the model's decision.These findings suggest that deep learning models can effectively associate distinct emotional features with HGC, as opposed to the AIGC by ChatGPT.
Figure 6 presents a visual representation of SHAP diagrams centered around the theme of life.In this diagram, 'b' portrays the local interpretation of misclassification, revealing an intriguing distinction.While the generated content ostensibly originates from an AIGC, closer inspection reveals that it is, in fact, created by HGC.Upon closer examination of the figure, it becomes evident that most of the words significantly contribute to AIGC, with the personal pronoun "my" exhibiting the highest value.Similarly, Figure 6E serves to illustrate that nouns like "困境 (dilemma)" "生活(life)," and others also play a significant role in classifying the text as HGC.This observation might align with the notion that the scenarios described in the text are coherent and amenable to detailed analysis-qualities commonly associated with AIGC.These examples underscore the challenges encountered when attempting to discern AIGC, mainly when disguised within HGC.
Depression is a complex and heterogeneous condition, and what works for one individual may not work for another.By understanding the local alignment between content characteristics and feature importance, interventions can be personalized to match everyone's linguistic profile and needs.By closely analyzing the alignment between content characteristics and feature importance, Local explanation plots of six text samples in the life topic.

Theoretical implications
The primary objective of this study was to delve into the realm of AI and its potential to transcend mere theoretical proficiency and semantic knowledge, focusing instead on its practical application in assessing mental health risks.More specifically, the study highlights the significant promise held by ChatGPT in contributing to mental health interventions for patients.This potential is underscored by its expansive domain knowledge, universal accessibility via phones and computers, and its capacity to alleviate the apprehension often linked to seeking help for psychological or psychiatric conditions.Prior investigations into integrating AI technology in mental health have emphasized its capacity to aid in technical tasks, alleviating the burden on clinical interactions.In this context, AIGC assists with non-personalized tasks, enabling clinicians to dedicate more time to delivering attentive care to patients.This strategic allocation of resources is rooted in the understanding that the quality of healthcare provided to individuals grappling with depression significantly hinges on the rapport cultivated between clinical practitioners and patients.
Scholars have advanced numerous potential applications of AI within the mental health domain.These encompass streamlining time-intensive duties like updating medical records, enhancing diagnostic and prognostic precision, facilitating a deeper comprehension of the underlying mechanisms of mental disorders, and amplifying the efficacy of biofeedback-based treatments.The findings from this present study advocate for using ChatGPT, either as a tool for gauging depression levels or to augment clinical counseling.In practical terms, AIGC should be harnessed to guide patients in seeking appropriate mental health treatment or support.

Practical implications
In this paper, we employ interpretable deep learning models to discern between the two categories of generated content and conduct various comparative analyses (42).It is crucial to highlight that these interpretations are context-dependent, and a more extensive investigation is warranted before drawing exhaustive distinctions between the writing styles of HGC and AIGC.Nevertheless, our Roberta-based model outperforms the baseline model and yields commendable interpretability.
First, it's noteworthy that AIGC's language exhibits a distinct lack of personal elements, characterized by the absence of personal pronouns and emotional expressions.Instead, it primarily describes experiences and predominantly employs a combination of the third-person tense and passive voice.Of course, this could vary depending on the specific query.Second, AIGC tends to exhibit a repetitive pattern in its responses.Many of its responses commence with a noun; if it introduces a term, it frequently reiterates it in subsequent replies.Furthermore, when requested to provide additional information, it often generates a response by rephrasing or slightly modifying segments of the preceding sentence.Lastly, AIGC refrains from using inappropriate language, including offensive or hate speech.However, based on our observations, it generally avoids the use of metaphors or sarcasm as well.
These findings are based on the dataset and context of this study, and a broader analysis may be necessary to fully characterize the nuances of AIGC's writing style in diverse situations.

Limitations and future work
This study possesses several limitations that warrant consideration.First, the responsiveness of the ChatGPT model to patient psychological counseling introduces a degree of sensitivity, potentially causing variations in the AIGC based on the input corpus.While our experimentation employed data from a Chinese psychological platform, which exhibited a certain level of homogeneity, it remains plausible that alternative and more suitable corpora exist for tailoring the ChatGPT model toward specific tasks.Moreover, given the rapid iterative nature of the model's development, ongoing vigilance is necessary to monitor and adapt to new iterations of ChatGPT.
Second, a limitation pertains to our assessment of AIGC quality through the lens of psychologists assisted by ChatGPT, without clear insights into its impact on clinical trials involving patients.Future endeavors should encompass extended patient follow-up periods and an enlarged patient sample size to enhance psychological interventions' efficacy substantially.
Thirdly, the average length of AIGC surpasses that of HGC, accompanied by a discernible divergence in tone between AIGC and HGC.This contrast may lead patients to need to understand which proposals stem from AIGC, potentially undermining the intervention's effectiveness.Hence, it becomes imperative to undertake a nuanced analysis of the distinctions between these two types of suggestions, unraveling the intricacies of AIGC generation patterns.

Conclusion
The imperative nature of psychological interventions within online health communities has been a focal concern.This study was undertaken to assess the viability of employing ChatGPT for generating AIGC, aimed at aiding counselors in their psychological interventions.Through an in-depth analysis of interpretability aspects, we found that ChatGPT always adopts a polite and considerate tone in its replies.It avoids using complex or unconventional vocabulary and maintains an objective demeanor.The distinctive perspectives presented by the AIGC were scrutinized, ultimately receiving commendation for their clarity and pertinence.AIGC proves instrumental in guiding patient counseling, discerning the extent of depression in individuals, and even facilitating experts in formulating tailored recommendations.In a holistic sense, the potential exhibited by ChatGPT in harnessing extensive language models to enhance psychological interventions for depression, grounded in human feedback, is palpable.This potential extends to diverse medical domains, entailing intricate clinical reasoning, marking a pivotal stride in the evolution of advanced chatbot applications.
Although the efficacy of AIGC is theoretically promising, mental health professionals shoulder the responsibility of upholding human well-being as paramount-consequently, the current stage warrants abstention regarding chat-based assessments as professionally conclusive, pending substantiating evidence.Our study encapsulates its outcomes in guidelines to illuminate forthcoming researchers, developers, and practitioners, enhancing their grasp of mental health literacy pertinent to downstream tasks.

3
FIGURE 3 Differences in linguistic analysis HGC and AIGC.(A) Part-of-speech analysis between HGC and AIGC.(B) Top-20 dependency relations between HGC and AIGC.(C) Top-20 dependency distances relations between HGC and AIGC.(D) Sentiment analysis of HGC and AIGC.
ChatGPT, a state-of-the-art language model developed by OpenAI, to generate recommendations in response to inquiries related to symptoms of depression and mental health challenges.ChatGPT is trained on a diverse corpus of text data and can produce contextually relevant responses.

TABLE 1
Two samples between HGC and AIGC.

TABLE 1 Continued
Life consists of many paths; you step on the left and don't look to the right.Anyone who has been tired for too long will get tired.The situation or life will push the unintentional in a certain wave, but the choice of forward or backward is still your own.Respect your heart and don't regret it later.No one can predict whether the path you take is right or wrong, and there is no right or wrong (opinion).I wish you all the happiness in the world!Translation: I can understand your concern about his future, reality is indeed harsh, there are differences in different families and perceptions can vary.Maybe you are worried that you will encounter the dilemma of the naked marriage era or the new marriage era.And it is indeed upsetting that you can't get the blessings of your family and friends right now.It's really not a good feeling to see other people living a privileged life with ease while you are running around to make ends meet.However, I firmly believe that true happiness and success depends not only on material conditions, but also on mutual support and understanding.If you work together, I believe the future will be better.I hope you can realize a happy and good life soon!

TABLE 2
Detection helpfulness between HGC and AIGC.SHAP local explanation plots of six text samples in the general topic.SHAP local explanation plots of six text samples in the love topic.
clinicians can detect these risk factors early and intervene proactively to prevent escalation.Clinicians also can tailor intervention strategies to align with everyone's linguistic preferences and communication styles, thereby increasing the effectiveness of the interventions.By optimizing interventions based on linguistic alignment, barriers to seeking and receiving care may be reduced, ultimately improving access and outcomes for individuals with depression.